<?php 

class CommonPagePresenter extends BasePresenter{
	
	
	/**
	 * Start lifecycle presenter
	 *
	 * @return void
	 */
	protected function startup(){
		parent::startup();
	}

	/**
	 * Settings for all render
	 *
	 * @return void
	 */
	protected function beforeRender(){
		
	}

	/**
	 * Render default action
	 *
	 * @return void
	 */
	public function renderDefault($id){
		
		// zjistime si id menu
		$menuItem = $this->system->getMenuItemByName($id);
		
		$model = CommonPageModel::getInstance();

		$info = $model->getPageInfo($menuItem[0]["id_menu"]);

		$this->template->add("info", $info[0]);

	}
	
}

?>